﻿<SettingsFlyout
    x:Class="SampleWindowsStoreApp.Views.Settings.MySettingsFlyout"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:settings="using:SampleWindowsStoreApp.ViewModels.Settings"
    mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"
    HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" 
    Title="Settings">
    
    <SettingsFlyout.Resources>
        <settings:MySettingsFlyoutModel x:Key="ViewModel" />
    </SettingsFlyout.Resources>
    
    <StackPanel DataContext="{StaticResource ViewModel}">
        <TextBox Text="{Binding Settings.IntSetting, Mode=TwoWay}" Margin="0,0,0,20" />
        <TextBox Text="{Binding Settings.StringSetting, Mode=TwoWay}" Margin="0,0,0,20" />
        <CheckBox IsChecked="{Binding Settings.BooleanSetting, Mode=TwoWay}" Content="Boolean Setting" Margin="0,0,0,20" />
    </StackPanel>
</SettingsFlyout>
